import Vue from 'vue';
import App from './App';

Vue.config.productionTip = false;
App.mpType = 'app'
// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);

// 此处为演示vuex使用，非uView的功能部分
import store from '@/store';

import * as filters from "./utils/filters.js"; // global filter

/**
 * 全局filters
 */
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});


// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare);

import mixin from './mixins/mixin'
Vue.mixin(mixin)

const app = new Vue({
	store,
	...App
});

app.$mount();

